<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>盒子模型</title>
        <style>
            #box {
                background-color: pink;
                /* 边框盒子模型包含边框和内边距,内容 */
                box-sizing: border-box;
                /* div 宽度和高度   默认占满整行 */
                width: 200px;
                height: 200px;
                /* 内边距 */
                padding: 20px;
                /* 边框  */
                border: 10px solid red;
                /* 外边距 */ 
                margin: 20px;
                
            }
        </style>
    </head>
    <body>
        <div id="box">我是盒子</div>
        <div id="box">我是盒子</div>
    </body>
</html>




